package com.epoch.servicetest.dao;

import com.epoch.servicetest.test.QuestionItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *
 * @author Seven
 * @date 2021/12/13
 */
@Repository
@Mapper
public interface QuestionItemDao {
    /**
     * 根据 questionId 获取试题的所有选项
     * @param questionId
     * @return
     */
    List<QuestionItem> getQuestionItemByQuestionId(@Param("questionId") Integer questionId);

//    /**
//     * 添加 questionItem
//     * @param questionItem
//     * @return
//     */
//    int addQuestionItem(QuestionItem questionItem);

    /**
     * 根据questionItemId获取questionItem
     * @param questionItemId
     * @return
     */
    QuestionItem getQuestionItemByQuestionItemId(@Param("questionItemId") Integer questionItemId);

}
